package com.yao.service;

import com.lly835.bestpay.model.PayResponse;
import com.lly835.bestpay.model.RefundResponse;
import com.yao.dto.OrderDTO;

/**
 * User: 姚宏武
 * Date: 2017/11/22
 * Time: 16:26
 * Email：401369870@qq.com
 * Description: 支付service接口
 */
public interface PayService {

    /**
     * 发起支付
     *
     * @param orderDTO
     * @return
     */
    PayResponse create(OrderDTO orderDTO);

    /**
     * 处理微信异步通知
     *
     * @param notifyData
     * @return
     */
    PayResponse notify(String notifyData);

    /**
     * 退款
     *
     * @param orderDTO
     * @return
     */
    RefundResponse refund(OrderDTO orderDTO);
}
